package com.atguigu.eduservice.mapper;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.atguigu.eduservice.entity.vo.CourseWebVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author Sdr
 * @since 2021-09-09
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    // 根据id查询课程发布信息
    CoursePublishVo selectCoursePublishVoById(String id);

    // 关联查询课程和讲师信息
    CourseWebVo selectInfoWebById(String courseId);
}
